package com.dream.xiaobo.dao;

import com.dream.xiaobo.entity.Type;

import java.sql.SQLException;
import java.util.List;

/**
 * @author xiaobo
 * @date 2021/8/31 - 10:33
 */
public interface TypeDao {

    /**
     * 查询全部商品分类
     * @return
     */
    List<Type> selectAll() throws SQLException;

    /**
     * 根据商品分类Id查询
     * @param tId
     * @return
     * @throws SQLException
     */
    Type selectByTid(String tId) throws SQLException;

    void insertType(Type type) throws SQLException;
}
